import { defineStore } from 'pinia';

export const useSettingsStore = defineStore('settings', {
    state: () => ({
        wordDisplayTime: 2, // 单词显示时间，以秒为单位
        thinkingTime: 10, // 思考时间，默认10秒
    }),
    actions: {
        setWordDisplayTime(time) {
            this.wordDisplayTime = time;
        },
        setThinkingTime(time) {
            this.thinkingTime = time;
        },
    },
});
